home *** CD-ROM | disk | FTP | other *** search
- Path: news.dal.ca!news
- From: Dan Kelley <d.kelley@dal.ca>
- Newsgroups: comp.lang.c++,gnu.gcc.help
- Subject: how to instantiate STL sort() routine?
- Date: Wed, 17 Apr 1996 13:58:30 -0300
- Organization: Dalhousie University
- Message-ID: <31752336.17DD@dal.ca>
- NNTP-Posting-Host: skye.phys.ocean.dal.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
-
- Can anyone advise me as to how to instantiate the STL (standard template library) routine
- called sort()? I'm working on a simple vector<double> structure. I use the
- -fno-implicit-templates compilation flag, for all files in my project except for one, and in
- that file I have no code at all, except for a bunch of instantiation commands like
-
- template class vector<double>;
-
- So the question is what kind of line I should add to this template file, so that in another
- file I could do e.g.
-
- vector<double> a;
- // assign some stuff into a
- sort(a.begin(), a.end());
-
- Thanks very much in advance, to anybody who can help me out. An email reply would be lovely,
- and I'd be happy to post a summary of the solution to my problem to these newsgroups.
-
- PS: I'm sorry to be repeating this question, which I also asked a few days back, but I'm still
- lost after the intervening time and hope to get help. Thanks.
-
- --
- Dan E. Kelley internet: mailto:Dan.Kelley@Dal.CA
- Oceanography Department phone: (902)494-1694
- Dalhousie University fax: (902)494-2885
- Halifax, NS, CANADA, B3H 4J1 WWW: http://www.phys.ocean.dal.ca/~kelley
-